<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:wh="http://java.sun.com/jsf/composite/webhib">

   <ui:composition template="../template.xhtml">
      <ui:define name="title">
         #{msg.title_passwordreset}
      </ui:define>

      <ui:define name="content">
         <f:event type="preRenderView" listener="#{pwres.passwordResetListener}"/>

         <div id="pwreset-page" class="useradmin-page">
            <h1 class="page-header">#{msg.header_passwordreset}</h1>
            <wh:pageMessage bean="#{pwres}"/>

            <h:panelGroup id="pwreset-pane" styleClass="input-pane" layout="block" rendered="#{!pwres.passwordReseted}">
               <h:form id="pwreset-form" prependId="false">
                  <wh:inputField id="email" label="#{msg.field_email}" value="#{pwres.email}" tabindex="1"/>
                  <div class="text-post"><p>#{msg.text_passwordreset_info}</p></div>
                  <wh:buttonPane>
                     <wh:inputButton id="pwreset-button" action="#{pwres.passwordResetAction}" label="#{msg.action_passwordreset}" tabindex="2"/>
                  </wh:buttonPane>
               </h:form>
            </h:panelGroup>

            <h:panelGroup id="pwreseted-pane" styleClass="input-pane" layout="block" rendered="#{pwres.passwordReseted}">
               <h:form id="pwreseted-form" prependId="false">
                  <div class="text-pre"><p>#{msg.text_passwordreset_ok}</p></div>
                  <wh:buttonPane>
                     <wh:inputButton id ="pwreseted-continue-button" action="#{pwres.passwordResetContinueAction}" label="#{msg.action_continue}" tabindex="1"/>
                  </wh:buttonPane>
               </h:form>
            </h:panelGroup>
         </div>

      </ui:define>
   </ui:composition>

</html>

